home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / uhrev_11.zip / ZIPBAT.TXT < prev    next >
Text File  |  1993-06-13  |  2KB  |  45 lines

  1.  
  2.                          FREE HARD DRIVE!
  3.        
  4.        Here's a neat little  batch  file  that  can save you LOTS of
  5.        disk space!
  6.        
  7.        By now, you should all have  the  latest  version  of  PKZIP.
  8.        Most  of  us use it only for BBS files.  However, you can use
  9.        it to store programs that you use every day as well.
  10.        
  11.        Let's say we want to compress a program like Qmodem.  It sits
  12.        in a directory called QMODEM, and is started with the command
  13.        QMODEM.  Instead of changing  to  that directory and starting
  14.        the program in the usual way, try this .BAT  file.   Name  it
  15.        QMODEM.BAT and call it from your menu or command line.
  16.        
  17.        CD\QMODEM
  18.        PKUNZIP QMODEM
  19.        QMODEM
  20.        PKZIP -ex QMODEM *.* -mu
  21.        
  22.        This is how it works:
  23.        
  24.        Line 1 moves to the QMODEM directory.
  25.        Line 2 tells it to UNZIP QMODEM.ZIP.
  26.        Line 3 executes the program.
  27.        
  28.        Line 4 is where the work is done.  The -ex switch tells PKZIP
  29.        to use maximum compression.  In this example, QMODEM would be
  30.        the  name  of the ZIP file that is created.  The *.* means of
  31.        course all files in the directory will be compressed, but the
  32.        secret behind this batch  file  is  the  -mu switch.  The "u"
  33.        tells it to UPDATE the existing .ZIP file and the  "m"  moves
  34.        (deletes)  all files in the directory except QMODEM.ZIP.  So,
  35.        if  any  files  were  changed,  they  would  be  replaced  in
  36.        QMODEM.ZIP.
  37.        
  38.             This one little batch  file  saved  me over 600k of disk
  39.        space!  Try it out youself and see how  well  it  works.   It
  40.        will  slow  loading  time  a  bit  depending  on what kind of
  41.        computer you have, but you  may  find  that the added time is
  42.        well worth the additional disk space, especially on  programs
  43.        that  are rarely used.  It's almost like getting another hard
  44.        drive for free!
  45.